-
Notifications
You must be signed in to change notification settings - Fork 777
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New utility methods for Common (loosely connected to Eth64 implementation) #805
Conversation
Codecov Report
@@ Coverage Diff @@
## master #805 +/- ##
==========================================
+ Coverage 84.32% 84.46% +0.13%
==========================================
Files 17 17
Lines 1231 1242 +11
Branches 246 247 +1
==========================================
+ Hits 1038 1049 +11
Misses 125 125
Partials 68 68
Continue to review full report at Codecov.
|
1177ae4
to
f316dab
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some nitpicky comments
These block tests sometimes seem to timeout. I also had this on some other PR. If you re-run the CI there's a chance it'll pass. |
f316dab
to
9d3271f
Compare
…hardforkForForkHash and associated tests
9d3271f
to
f0e547d
Compare
Related to ethereumjs/ethereumjs-devp2p#82
This PR adds the following methods to the
Common
library together with associated tests:nextHardforkBlock()
- Returns the next HF block for a HF provided or setisNextHardforkBlock()
- Some convenience additional utility method, matching the existinghardforkBlock()
/isHardforkBlock()
method setuphardforkForForkHash()
- Returns the data available for a HF given a specific forkHashAll functions are triggered by needs of the Eth64 implementation, but will likely - especially the first two next-HF-block functions also be useful in other contexts, e.g. for switching the HF setting on the client along block download.